<?php
//curl 简单实例
$ch = curl_init();

//设置选项
curl_setopt($ch, CURLOPT_URL, "http://www.baidu.com");
curl_setopt($ch, CURLOPT_HEADER, 0);

//执行
curl_exec($ch);

//关闭
curl_close($ch);